package cn.gson.crm.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.Data;

/**
 * 财务：催款记录表
 * @author john
 *
 */
@Entity
@Table(name="tb_cw_cuikuan")
@Data
public class Cuikuan {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="tb_cw_cuikuan_id")
	private Long id;
	
	//状态
	private String statu;
	
	//催款人
	@ManyToOne
	@JoinColumn(name = "emp_id")
	private Emp emp;
	
	//催款对象
	@ManyToOne
	@JoinColumn(name = "emp_teacher_id")
	private Emp empTeacher;
	
	//收款记录
	@ManyToOne
	@JoinColumn(name = "payrecord_id")
	private Payrecord payrecord;
	
}
